﻿var fnShowImg = function (e) {
    var grid = mini.get("grid1");
    var row = grid.getSelected();
    var id = row.id;
    var photoaddress = row.employee_photo;
    //alert(photoaddress)
    if (row) {
        mini.open({
            //url: "/ExtendPage/datagrid/datagrid.aspx?entity=v_t_client_passprocess_container_no_data&condition=t_main_id=" + row.id,
            url: "/ExtendPage/editview/DefineViewForm.aspx?entity=v_t_base_employee_info&id=" + id,
            title: "相片", width: "120", height: "200",
            onload: function () {

            },
            ondestyor: function (action) {
                grid.reload();
            }
        });
    } else {
        alert("请选中一条记录");
    }


}


var fnCustomNodeSelect = function (e) {

    treeId = e.node.path;
    const_TreeCustomCondition = "path like '%" + e.node.path + "%'";
    grid.setUrl("../data/jsondata.aspx?entity=" + const_entityName + "&order=" + const_Order + "&desc=" + const_Desc + "&datagrid=true&pagesize=1000&customCondition=&condition=" + const_TreeCustomCondition);
    //const_TreeCustomCondition="";
    grid.load({ /*condition:"dept_id='"+e.node.id+"'"*/ });

}
